<template>
  <div>
    <el-button type="primary" @click="disable">{{disableStatus?"编辑":"保存"}}</el-button>   
    <el-button type="primary" @click="add">添加</el-button> 
  </div>
</template>

<script>
export default {
  props:{
    disableStatus:Boolean
  },
  methods:{
    disable(){
      this.$emit("disable");      
    },
    add(){
       this.$emit("add");
    }
  }
}
</script>

<style>

</style>